package com.neusoft.ysu.his.mapper;

import com.neusoft.ysu.his.entity.Manager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者：赵子鉴
 * @since 2023-08-29
 */
@Mapper
public interface ManagerMapper extends BaseMapper<Manager> {
    @Select("select * from manager where loginname=#{loginname}")
    List<Manager> insertCheck(Manager manager);
    @Select("select * from manager where loginname=#{loginname} AND password=#{password}")
    Manager loginCheck(Manager manager);
}
